package com.camel.network;

import cn.dev33.satoken.SaManager;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;

/**
 * @author 86183
 */
@EnableDiscoveryClient
@SpringBootApplication
@ComponentScans(value = {@ComponentScan("com.camel.core")})
@MapperScan("com.camel.network.mapper")
public class NetworkApplication {

    public static void main(String[] args) {
        SpringApplication.run(NetworkApplication.class, args);
        System.out.println("网络服务启动成功：Sa-Token配置如下：" + SaManager.getConfig());
    }
}
